import request from "@/utils/request.js";

// 查询自动分卷规则列表
export function getSubsectionRulesDataApi(params) {
  return request({
    url: "/edu/paperManagement/rules/list",
    method: "POST",
    params,
  });
}

// 添加自动分卷规则
export function addSubsectionRulesItemApi(params) {
  return request({
    url: "/edu/paperManagement/rules/add",
    method: "POST",
    params,
  });
}

// 删除自动分卷规则
export function removeSubsectionRulesItemApi(params) {
  return request({
    url: "/edu/paperManagement/rules/remove",
    method: "POST",
    params,
  });
}

// 修改自动分卷规则
export function EditSubsectionRulesItemApi(params) {
  return request({
    url: "/edu/paperManagement/rules/update",
    method: "POST",
    params,
  });
}

// 年级列表
export function getGradeListApi(data) {
  return request({
    url: '/edu/typeData/list',
    method: 'POST',
    params:data
  })
}

// 获取课程列表 / 搜索
export function getCourseListApi(params) {
  return request({
    url: '/edu/course/list',
    method: 'POST',
    params
  })
}

// 删除
export function removeItemApi(params) {
  return request({
    url: '/edu/paperManagement/rules/remove',
    method: 'POST',
    params
  })
}

// 难度
export function getDifficultyApi(params) {
  return request({
    url: '/edu/typeData/list',
    method: 'POST',
    params
  })
}
